/*
 * @Author: 孙大大
 * @Date: 2022-03-26 16:08:49
 * @LastEditTime: 2022-03-28 10:12:19
 * @FilePath: \vue-admin-template-master\src\api\departments.js
 */
import request from "@/utils/request";
export function getDepartments() {
  return request({
    url: "/company/department",
  });
}

export function delDepartments(id) {
  return request({
    url: `/company/department/${id}`,
    method: "delete",
  });
}

export function addDepartments(data) {
  return request({
    url: "/company/department",
    method: "post",
    data,
  });
}
